//
//  COCOAFANImageView.m
//  CocoaFan
//
//  Created by Chen Xianan on 2009-02-28.
//  Copyright 2009 realazy.org All rights reserved.
//

#import "COCOAFANImageView.h"


@implementation COCOAFANImageView

- (void)mouseDown:(NSEvent *)theEvent
{
    [[self superview] mouseDown:theEvent];
}

- (void)drawRect:(NSRect)rect {
    // Drawing code here.
	NSBezierPath *clipPath = [NSBezierPath bezierPathWithRoundedRect:[self bounds]
															 xRadius:4.0
															 yRadius:4.0];
	[clipPath addClip];
	[NSGraphicsContext saveGraphicsState];
	[super drawRect:rect];
	[NSGraphicsContext restoreGraphicsState];
}

@end
